import java.util.LinkedList;

import FactoryMethod.*;

public class PolymorphicFactoryMethodDemonstration {

	public static void main(String[] args) {
	
		PolymorphicFactory f;
		
		f=new FileFactory();
		f.testDataSource("C:\\test.txt");
		
		f=new WebFactory();
		f.testDataSource("http://www.wp.pl");
		
		f=new DefaultFactory();
		f.testDataSource("");
		
		f=new DatabaseFactory();
		f.testDataSource("db_file");

}
